// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.LogisticsOrder;
import com.fowo.api.model.logistics.order.LogisticsOrderItemVo;
import com.fowo.api.model.logistics.order.LogisticsOrderSearchParamPo;
import com.fowo.api.model.logistics.order.LogisticsOrderVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface LogisticsOrderMapper extends BaseMapper<LogisticsOrder> {
  Page<LogisticsOrderItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") LogisticsOrderSearchParamPo search
  );
  List<OptionItem<LogisticsOrderItemVo>> searchOptions(
    @Param("search") LogisticsOrderSearchParamPo search
  );
  List<LogisticsOrderItemVo> search(
    @Param("search") LogisticsOrderSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") LogisticsOrderSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") LogisticsOrderSearchParamPo search);
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") LogisticsOrderSearchParamPo search);
  Long getIdByOrderId(@Param("orderId") String orderId);

  List<Long> getIdsByOrderId(@Param("list") List<String> list);

  String getOrderIdById(@Param("id") Long id);

  List<Map<String, Object>> getOrderIdByIds(@Param("ids") List<Long> ids);
  LogisticsOrderVo selectVoById(@Param("id") Long id);
  /**
   * 全部
   */
  List<LogisticsOrderItemVo> allOrder(
    @Param("search") LogisticsOrderSearchParamPo search
  );

  /**
   * 获取全部编号列表
   */
  List<Long> allOrderIds(@Param("search") LogisticsOrderSearchParamPo search);

  /**
   * 获取全部的总数
   */
  Long allOrderCount(@Param("search") LogisticsOrderSearchParamPo search);

  /**
   * 全部分页
   */
  Page<LogisticsOrderItemVo> allOrderPage(
    @Param("page") Page page,
    @Param("search") LogisticsOrderSearchParamPo search
  );
  Date allOrderLastUpdateTime(
    @Param("search") LogisticsOrderSearchParamPo search
  );
  /**
   * 下单中
   */
  List<LogisticsOrderItemVo> placeOrder(
    @Param("search") LogisticsOrderSearchParamPo search
  );

  /**
   * 获取下单中编号列表
   */
  List<Long> placeOrderIds(@Param("search") LogisticsOrderSearchParamPo search);

  /**
   * 获取下单中的总数
   */
  Long placeOrderCount(@Param("search") LogisticsOrderSearchParamPo search);

  /**
   * 下单中分页
   */
  Page<LogisticsOrderItemVo> placeOrderPage(
    @Param("page") Page page,
    @Param("search") LogisticsOrderSearchParamPo search
  );
  Date placeOrderLastUpdateTime(
    @Param("search") LogisticsOrderSearchParamPo search
  );
  /**
   * 下单异常
   */
  List<LogisticsOrderItemVo> errorOrder(
    @Param("search") LogisticsOrderSearchParamPo search
  );

  /**
   * 获取下单异常编号列表
   */
  List<Long> errorOrderIds(@Param("search") LogisticsOrderSearchParamPo search);

  /**
   * 获取下单异常的总数
   */
  Long errorOrderCount(@Param("search") LogisticsOrderSearchParamPo search);

  /**
   * 下单异常分页
   */
  Page<LogisticsOrderItemVo> errorOrderPage(
    @Param("page") Page page,
    @Param("search") LogisticsOrderSearchParamPo search
  );
  Date errorOrderLastUpdateTime(
    @Param("search") LogisticsOrderSearchParamPo search
  );
}
